﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="ItemEntry.aspx.cs" Inherits="com.vs.RF.Web.receiving.ItemEntry" MasterPageFile="~/RF.Master" %>
<%@ Import Namespace="System.Data" %>
<%@ Import Namespace="com.vs.DataAccess" %>
<asp:Content ID="Content1" ContentPlaceHolderID="body" runat="server">
    <script type="text/javascript">
        function valForm() {
            if (form1.tbItem.value == "") {
                alert("请输入货品号");
                return false;
            }
            return true;
        }

        var iNumOfSubmit = 0;
        function btnOK_Click() {
            if (iNumOfSubmit > 0)
                return;
            if (valForm()) {
                iNumOfSubmit++;
                form1.submit();
            }
        }

        function btnCancel_Click() {
            form1.action = "ReceiptIDEntry.aspx";
            form1.submit();
        }

        function on_Load() {
            form1.tbItem.focus();
        }
    </script>
    
    <%= stErrorMessage %>
    <form id="form1" action="ItemEntryHandling.aspx" method="post" onload="form1.tbItem.focus();">
    <div>
        <table>
            <tr>
                <td>收货单号：</td>
                <td><%=Session["RECEIPT_ID"] %></td>
            </tr>
            <tr>
                <td>货品：</td>
                <td>
                    <input type="text" name="tbItem" class="greyRed" />
                </td>
            </tr>
<%--
            <tr>
                <td></td>
                <td>货品号</td>
                <td>名称/规格</td>
                <td>数量</td>
                <td>单位</td>
            </tr>
                <%
                    if (null != this.dtRcpDtl && dtRcpDtl.Rows.Count > 0){
                        int iIdx = 0;
                        foreach (DataRow dr in dtRcpDtl.Rows)
                        {
                            iIdx++;
                            %>
            <tr>
                <td><%=iIdx %></td>
                <td><%=DataManager.GetString(dr, "ITEM") %></td>
                <td><%=DataManager.GetString(dr, "ITEM_DESC") %></td>
                <td><%=DataManager.GetString(dr, "OPEN_QTY") %></td>
                <td><%=DataManager.GetString(dr, "QUANTITY_UM") %></td>
            </tr>
                            <%
                        }
                    }
                %>
--%>
        </table>    
    </div>
    
    <div id="footer">  
        <input type="button" id="Button1" value="确定" onclick="btnOK_Click()" class="greyRed"/>
        <input type="button" id="Button2" value="取消" onclick="btnCancel_Click()" class="greyRed" />
    </div>
    </form>
</asp:Content>